package com.thinkverse.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;

/**
 * 检索服务启动类
 * 排除数据源相关自动配置，因为搜索服务只使用 Elasticsearch，不需要数据库
 */
@SpringBootApplication(exclude = {
    DataSourceAutoConfiguration.class,
    DataSourceTransactionManagerAutoConfiguration.class
})
public class SearchApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class, args);
    }
}
